home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / telecomm / fnordadl / fn132src.zoo / cith / citadel.h < prev    next >
C/C++ Source or Header  |  1991-09-02  |  12KB  |  422 lines

  1. /*
  2.  * citadel.h -- global function and variable declarations for citadel.tos.
  3.  *        Generated by `mkptypes citmain\*.c' (minus cfg.c.) and by
  4.  *        painstaking effort...
  5.  *
  6.  * 90Aug28 AA    Created.
  7.  */
  8.  
  9. #ifndef _CITADEL_H
  10. #define _CITADEL_H
  11.  
  12. #if defined(__STDC__) || defined(__cplusplus)
  13. # define _P(s) s
  14. #else
  15. # define _P(s) ()
  16. #endif
  17.  
  18.  
  19. /* citmain\archive.c */
  20. int sendARchar _P((int c));
  21. int ARsetup _P((char *file));
  22. int sendARend _P((void));
  23.  
  24. /* citmain\calllog.c */
  25. void logMessage _P((char val, char *str, char sig));
  26.  
  27. /* citmain\ctdl.c */
  28.  
  29. /* citmain\doenter.c */
  30. void doEnter _P((int prefix, char cmd));
  31.  
  32. /* citmain\door.c */
  33. void initdoor _P((void));
  34. void dodoor _P((void));
  35.  
  36. /* citmain\doread.c */
  37. int rwProtocol _P((char cp));
  38. int initWC _P((int mode));
  39. void doRead _P((int prefix, int hack, char cmd));
  40.  
  41. /* citmain\dosysop.c */
  42. int doSysop _P((void));
  43.  
  44. /* citmain\driver.c */
  45. void setmodem _P((int interactive));
  46. void fixmodem _P((void));
  47. void setBaud _P((int x));
  48. int gotcarrier _P((void));
  49. void modemClose _P((void));
  50. void modemOpen _P((void));
  51. void mflush _P((void));
  52.  
  53. /* citmain\floor.c */
  54. int doFloor _P((char c));
  55. int gotoFloor _P((char genNumber));
  56. void listFloor _P((short mask));
  57. void lFloor _P((short mask));
  58. int findFloor _P((char gen));
  59.  
  60. /* citmain\format.c */
  61. char *printword _P((register char *word));
  62. void mformat _P((register char *string));
  63. void mprintf _P((char *format, ...));
  64.  
  65. /* citmain\holdmsg.c */
  66. int puthold _P((int idx));
  67. int gethold _P((int idx));
  68. void killhold _P((int idx));
  69. int chkhold _P((int idx));
  70.  
  71. /* citmain\hothelp.c */
  72. int hothelp _P((char *filename));
  73. int blurb _P((char *name, int impervious));
  74. int dobanner _P((void));
  75. void menu _P((char *name));
  76. int help _P((char *name, int impervious));
  77.  
  78. /* citmain\login.c */
  79. int getpwlog _P((LABEL pw, struct logBuffer *p));
  80. int login _P((char prefix));
  81. void setlog _P((void));
  82.  
  83. /* citmain\misc.c */
  84. void getNormStr _P((char *prompt, char *s, int size, int doEcho));
  85. void givePrompt _P((void));
  86. long asknumber _P((char *prompt, long bottom, long top, int def));
  87. long getNumber _P((char *prompt, long bottom, long top));
  88. int whereis _P((char *, char *, int, int));
  89. void setclock _P((void));
  90. void showcfg _P((void));
  91. void config _P((char what));
  92. int ingestFile _P((char *name));
  93. int _getstring _P((char *string, int i, int size, int escape, int visible));
  94. int getString _P((char *prompt, char *string, int size, char escape, int visible));
  95. int typeWC _P((FILE *fd));
  96. int download _P((struct dirList *fn));
  97. int typefile _P((struct dirList *p));
  98. int wildcard _P((int (*fn)(struct dirList *), char *pattern, 
  99.     int (*preamble)(int, struct dirList *)));
  100. void upload _P((char WCmode));
  101. char *plural _P((char *msg, long number));
  102. void showdays _P((char mask, int oldstyle));
  103. int dateok _P((time_t time));
  104. int dl_not_ok _P((long time, long size));
  105. void dlstat _P((char *fname, long time, long size));
  106. void whazzit _P((void));
  107. char *uname _P((void));
  108. void initCitadel _P((void));
  109. void exitCitadel _P((int status));
  110.  
  111. /* citmain\modem.c */
  112. int BBSCharReady _P((void));
  113. unsigned iChar _P((void));
  114. void mputchar _P((char c));
  115. void connect _P((int line_echo, int mapCR, int local_echo));
  116. char modIn _P((void));
  117. void ringSysop _P((void));
  118.  
  119. /* citmain\msg.c */
  120. int mAbort _P((void));
  121. int printdraft _P((void));
  122. int permission _P((int complain));
  123. int addressee _P((int netflag));
  124. void promote _P((void));
  125. int entermesg _P((int protocol));
  126. int heldmesg _P((int protocol));
  127. int localmesg _P((int protocol));
  128. int nettedmesg _P((int protocol));
  129. int pick1mesg _P((long id));
  130. int read1mesg _P((int msgNo, int canbackup));
  131. int msgbrk _P((register long lim));
  132. void showMessages _P((int which, int reverse));
  133.  
  134. /* citmain\netcall.c */
  135. int netWCstartup _P((char *from));
  136. int caller _P((void));
  137. void mastermode _P((int reversed));
  138. void readNegMail _P((void));
  139. int netcommand _P((int cmd, ...));
  140.  
  141. /* citmain\neterror.c */
  142. void neterror _P((int hup, char *format, ...));
  143.  
  144. /* citmain\netmain.c */
  145. int increment _P((int c));
  146. void readMail _P((char zap, void (*mailer )()));
  147. void inMail _P((void));
  148. void openNet _P((void));
  149. void netmode _P((int length, int whichnet));
  150. int checkpolling _P((void));
  151. void pollnet _P((int which));
  152. void closeNet _P((void));
  153. int netTimeLeft _P((void));
  154. int callout _P((int i));
  155. int dialer _P((int i, int abort));
  156. void OutOfNet _P((void));
  157. int netAck _P((void));
  158.  
  159. /* citmain\netmisc.c */
  160. int normID _P((register char *source, register char *dest));
  161. int srchNetNm _P((char *name));
  162. int srchNetId _P((char *forId));
  163. void listnodes _P((int extended));
  164. void netmenu _P((void));
  165. int getSysName _P((char *prompt, char *system));
  166. int netmesg _P((int slot));
  167. void netPrintMsg _P((short loc, long id));
  168. void sendXmh _P((void));
  169. long sysRoomLeft _P((void));
  170. int netchdir _P((char *path));
  171.  
  172. /* citmain\netrcv.c */
  173. int issharing _P((int slot));
  174. void nmcalled _P((void));
  175. void called _P((void));
  176. void slavemode _P((int reversed, int gotID));
  177. char *netopt _P((char *optstr, char *proto));
  178. void doSetup _P((void));
  179. void doResults _P((void));
  180.  
  181. /* citmain\nfs.c */
  182. void nfs_put _P((int place, int cmd, char *file, char *dir, char *room));
  183. void nfs_process _P((void));
  184.  
  185. /* citmain\postmsg.c */
  186. void _spool _P((FILE *f));
  187. int postmail _P((int savemail));
  188. void msgprintf _P((char *format, ...));
  189. void note2Message _P((long id, int loc));
  190. void msgToDisk _P((char *filename));
  191. int storeMessage _P((struct logBuffer *who, int idx));
  192. void aideMessage _P((int noteDeletedMessage));
  193.  
  194. /* citmain\room.c */
  195. int roomExists _P((char *room));
  196. int canEnter _P((int i, int enterifZ));
  197. int nextroom _P((int mode));
  198. int msgCount _P((register int brk));
  199. int statroom _P((void));
  200. void toroom _P((int roomno, int skipflag));
  201. int gotoname _P((char *name));
  202. void steproom _P((int expand, int forward));
  203. void gotoroom _P((char *name, char mode));
  204. int hasNew _P((int i));
  205. int rvalid _P((int rmno, short mode));
  206. void listRooms _P((short mode));
  207. int partialExist _P((LABEL target));
  208. void indexRooms _P((void));
  209. void makeRoom _P((void));
  210. void initialArchive _P((char *fn));
  211. void getList _P((int (*fn)(char *), char *prompt));
  212.  
  213. /* citmain\roomedit.c */
  214. void roomreport _P((char *buffer));
  215. void whosnetting _P((void));
  216. void editroom _P((void));
  217.  
  218. /* citmain\scandir.c */
  219. int scandir _P((char *mask, struct dirList **list));
  220. void freedir _P((struct dirList *list, int count));
  221.  
  222. /* citmain\statbar.c */
  223. int makebar _P((void));
  224. void killbar _P((void));
  225. void stat_upd _P((void));
  226.  
  227. /* citmain\sysdep.c */
  228. void getArea _P((struct aRoom *roomData));
  229. void homeSpace _P((void));
  230. int xchdir _P((char *path));
  231. int mmesgbaud _P((void));
  232. int scanbaud _P((void));
  233. void crashout _P((char *msg, ...));
  234. void xputs _P((char *s));
  235. int xputc _P((int c));
  236. void xprintf _P((char *format, ...));
  237. void iprintf _P((char *format, ...));
  238. void splitF _P((FILE *diskfile, char *format, ...));
  239. void wcprintf _P((char *format, ...));
  240. int set_time _P((struct tm *clk));
  241. long dosexec _P((char *cmd, char *tail));
  242. void systemInit _P((void));
  243. void systemShutdown _P((void));
  244.  
  245. /* citmain\terminat.c */
  246. void terminate _P((int disconnect, char flag));
  247.  
  248. /* citmain\xymodem.c */
  249. int sendCchar _P((int c));
  250. int sendCinit _P((void));
  251. int sendCend _P((void));
  252. int sendARinit _P((void));
  253. int sendYhdr _P((char *name, long size));
  254. int recXfile _P((int (*pc )(int )));
  255. int beginWC _P((void));
  256. int endWC _P((void));
  257. int enterfile _P((int (*pc )(int ), char mode));
  258.  
  259. /* citmain\zaploop.c */
  260. void init_zap _P((void));
  261. void close_zap _P((void));
  262. int notseen _P((void));
  263.  
  264. #undef _P
  265.  
  266. /* global variables for citadel.tos */
  267.  
  268. /* ctdl.c */
  269. extern long    _stksize;
  270. extern char    Abandon;    /* True when time to bring system down    */
  271. extern char    eventExit;    /* true when an event goes off        */
  272. extern char    dropDTR;    /* hang up phone when in console mode    */
  273. extern char    netymodem;
  274. #ifdef ATARIST
  275. extern char    multiTask;    /* run as a background multitasker?    */
  276. #endif
  277. extern char    statbar;    /* disable the status bar        */
  278. extern char    restrict;    /* implement login restrictions?    */
  279. extern char    msgpurge;    /* implement msg purge after logoff?    */
  280. extern char    Debug;        /* normal debugging            */
  281. extern int    exitValue;
  282. extern char    confirm[];
  283. extern struct user *restlist;
  284. extern int    numrestrict;
  285. extern struct user *purgelist;
  286. extern int    numpurge;
  287.